package com.xinan.tool;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;


/**
 * 工具服务
 *
 * @author Administrator
 */
@EnableScheduling
@SpringBootApplication
@MapperScan(basePackages = "com.xinan.tool.**.mapper")
public class XinToolApplication {

    public static void main(String[] args) {
        SpringApplication.run(XinToolApplication.class, args);
    }

    public static ConfigurableApplicationContext run(Class<?>[] primarySources, String[] args) {
        return new SpringApplication(primarySources).run(args);
    }

}
